package indi.jp.project.core.service;

import indi.jp.project.core.entity.JsonResult;
import indi.jp.project.core.entity.Menu;
import indi.jp.project.core.entity.User;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface UserService {

    Map<String, Object> queryGrid(User entity) throws SQLException;

    List<Menu> queryUserMenu(String username) throws SQLException;

    int lockUser(String id) throws SQLException;

    int unlockUser(String id) throws SQLException;

    int save(User entity) throws SQLException;

    int edit(User entity) throws SQLException;

    int deleteById(String id) throws SQLException;

    Map<String, Object> queryUserByRoles(Map<String, Object> map) throws SQLException;

    void batchInsertUser(List<User> list) throws SQLException;

    JsonResult pwdModify(Map<String, String> map) throws SQLException;

    int pwdInit(User entity) throws SQLException;
}
